<div class="page-header">
	<h1>受注検索</h1>
</div>
<?php echo validation_errors(); ?>
<form class="" action="commodity/search" method="post"">
	<table class="table table-bordered">
		<colgroup>
			<col width="15%" />
			<col width="35%" />
			<col width="15%" />
			<col width="35%" />
		</colgroup>
		<tr>
			<td colspan="2" style="border-right:0px;">&nbsp;&nbsp;検索条件</td>
			<td colspan="2" style="border-left:0px;text-align:right;">
				<input type="button" class="" value="詳細検索" placeholder="" style="font-size:0.8em;width:70px;"/>
			</td>
		</tr>
		<tr>
			<td>受注番号</td>
			<td colspan="3">
				<input type="text" class="" value="" placeholder="" />
				<label style="font-size:0.6em;color:blue;">[16桁]</label> ~  
				<input type="text" class="" value="" placeholder="" />
				<label style="font-size:0.6em;color:blue;">[16桁]</label>
				&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id="check1"><label for="check1">&nbsp;売上確定データを含む</label>
				&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id="check2"><label for="check2">&nbsp;データ連携済を含む</label>
			</td>
		</tr>
		<tr>
			<td>受注状況</td>
			<td colspan="3">
				<input type="checkbox" id="check3"><label for="check3">&nbsp;予約&nbsp;&nbsp;</label>
				<input type="checkbox" id="check4"><label for="check4">&nbsp;受注&nbsp;&nbsp;</label>
				<input type="checkbox" id="check5"><label for="check5">&nbsp;キャンセル&nbsp;&nbsp;</label>
				<input type="checkbox" id="check6"><label for="check6">&nbsp;仮注文&nbsp;&nbsp;</label>
				<input type="checkbox" id="check7"><label for="check7">&nbsp;仮予約&nbsp;&nbsp;</label>
				<input type="checkbox" id="check8"><label for="check8">&nbsp;期限切れ&nbsp;&nbsp;</label>
			</td>
		</tr>
		<tr>
			<td>出荷状況</td>
			<td>
				<input type="checkbox" id="check9"><label for="check9">&nbsp;未出荷&nbsp;&nbsp;</label>
				<input type="checkbox" id="check10"><label for="check10">&nbsp;出荷手配中&nbsp;&nbsp;</label>
				<input type="checkbox" id="check11"><label for="check11">&nbsp;一部出荷&nbsp;&nbsp;</label>
				<input type="checkbox" id="check12"><label for="check12">&nbsp;全て出荷&nbsp;&nbsp;</label>
			</td>
			<td>返品状況</td>
			<td>
				<input type="checkbox" id="check13"><label for="check13">&nbsp;返品なし&nbsp;&nbsp;</label>
				<input type="checkbox" id="check14"><label for="check14">&nbsp;一部返品&nbsp;&nbsp;</label>
				<input type="checkbox" id="check15"><label for="check15">&nbsp;全て返品&nbsp;&nbsp;</label>
			</td>
		</tr>
		<tr>
			<td>受注日</td>
			<td colspan="3">
				<input type="text" id="datepicker1">&nbsp;~&nbsp;<input type="text" id="datepicker2">
				<label style="font-size:0.6em;color:blue;">※日付のテキストボックスには、「YYYY/MM/DD」　または　「YYYYMMDD」　形式で入力してください。</label>
			</td>
		</tr>
		<tr>
			<td>入金状況</td>
			<td>
				<input type="radio" name="deposit_cond" value="all" id="deposit_cond_all"><label for="deposit_cond_all">&nbsp;全て&nbsp;&nbsp;</label>
				<input type="radio" name="deposit_cond" value="cond1" id="deposit_cond_1" checked="checked"><label for="deposit_cond_1">&nbsp;未入金のみ&nbsp;&nbsp;</label>
				<input type="radio" name="deposit_cond" value="cond2" id="deposit_cond_2"><label for="deposit_cond_2">&nbsp;入金済のみ&nbsp;&nbsp;</label>
			</td>
			<td>支払方法</td>
			<td>
	    		<select style="width:50%;">
					<option value="" selected>-----</option>
					<option value="1">1</option>
					<option value="2">2</option>
					<option value="3">3</option>
					<option value="4">4</option>
					<option value="5">5</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>入金日</td>
			<td colspan="3">
				<input type="text" id="datepicker3">&nbsp;~&nbsp;<input type="text" id="datepicker4">
				<label style="font-size:0.6em;color:blue;">※日付のテキストボックスには、「YYYY/MM/DD」　または　「YYYYMMDD」　形式で入力してください。</label>
			</td>
		</tr>
		<tr>
			<td rowspan="2">支払期間</td>
			<td colspan="3">
				<input type="checkbox" id="check16"><label for="check16">&nbsp;支払期限切れ</label>
			</td>
		</tr>
		<tr>
			<td colspan="3">
				<input type="text" class="" value="" size="2" placeholder="" />
				<label style="font-size:0.6em;color:blue;">&nbsp;[2桁]</label>
				<label>日以内に支払期限切れ&nbsp;&nbsp;</label>
				<input type="checkbox" id="check17"><label for="check17">&nbsp;入金督促メール送信済みを含む</label>			</td>
		</tr>
	</table>
	<table style="border: 0px;width:100%;">
		<colgroup>
			<col width="100%" />
		</colgroup>
		<tr>
			<td align="right">
				<button type="submit" class="btn btn-default" style="width:120px;">検索する</button>
				<button type="submit" class="btn btn-default" style="width:120px;">CSV出力</button>
			</td>
		</tr>
	</table>
</form>
<br />

<div class="bs-example" data-example-id="striped-table">
	<table class="table table-bordered">
		<colgroup>
			<col width="2%" />
			<col width="7%" />
			<col width="14%" />
			<col width="8%" />
			<col width="8%" />
			<col width="8%" />
			<col width="8%" />
			<col width="8%" />
			<col width="8%" />
			<col width="8%" />
			<col width="10%" />
		</colgroup>
		<thead>
			<tr>
				<th><input type="checkbox"></th>
				<th>受注番号</th>
				<th>顧客名<br>受注時電話番号</th>
				<th>受注日時</th>
				<th>支払方法</th>
				<th>入金日<br>支払期限日</th>
				<th>確認メール<br>督促メール</th>
				<th>注文合計金額</th>
				<th>受注状況</th>
				<th>出荷状況<br>返品状況</th>
				<th>売上確定<br>データ連携</th>
			</tr>
		</thead>
	<?php
	foreach ( $list as $entry ) {
		?>
      <tbody>
			<tr>
				<th scope="row">1</th>
				<td></td>
				<td><?=$entry->COMMODITY_CODE?></td>
				<td><a
					href="/zswebshop/index.php/admin/commodity/detail/<?=$entry->COMMODITY_CODE?>"><?=$entry->COMMODITY_NAME?></a></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
		</tbody>
	<?php
	}
	?>
    </table>
	<table style="border: 0px;width:100%;">
		<colgroup>
			<col width="100%" />
		</colgroup>
		<tr>
			<td align="right">
				<button type="submit" class="btn btn-default" style="width:140px;">入金確認メール送信</button>
				<button type="submit" class="btn btn-default" style="width:140px;">入金督促メール送信</button>
				<button type="submit" class="btn btn-default" style="width:120px;">入金日削除</button>
			</td>
		</tr>
	</table>
</div>
<!-- /example -->
